/**
 * @created  April 17, 2007
 * @author tlopez
 * @author adegomme
 *
 * This classe is a format used by IHM to communicate informations
 * about a Sink to the SensorSimulator
 */
package kernel;

import java.util.*;
import java.io.*;

import objects.Station;
import comRadiusController.*;

public class DataSink extends DataMobileStation implements Serializable{ 

    transient private Vector<DataInterest> _requests;

    /**
     * Default constructor
     */
    public DataSink(){
	super();
	_requests = new Vector<DataInterest>();
    }
	
    /**
     * Constructor
     * @param name
     * @param x
     * @param y
     * @param maxReachRadius
     * @param carrierRate
     * @param wishedEmission
     * @param wishedEmission3
     * @param requests
     * @param controller
     * @param repeat
     * @param trajectory
     * @param aiLevel
     * @param probes
     * @param ac
     * @param frange
     */
    public DataSink ( String name,
		      double x,
		      double y,
		      double maxReachRadius,
		      double carrierRate,
		      Vector wishedEmission,
		      Vector wishedEmission3,
		      Vector<DataInterest> requests,
		      double batteryLevel,
		      double[] consumption,
		      ComRadiusController controller,
		      boolean repeat,
		      Vector trajectory,
		      int aiLevel,
		      Vector probes,
		      Stack activities,
		      int bi,
		      int de,
		      float fmin,
		      float fmax,
		      int nbfreq) {
	super(  name,
		x,
		y,
		maxReachRadius,
		carrierRate,
		wishedEmission,
		wishedEmission3,
		batteryLevel,
		consumption,
		controller,
		repeat,
		trajectory,
		aiLevel,
		probes,
		activities,
		bi,
		de,
		fmin,
		fmax,
		nbfreq);
	setRequests(requests);
    }

    public void setRequests(Vector<DataInterest> requests)
    {
	_requests = requests;
    }

    public Vector<DataInterest> getRequests()
    {
	return _requests;
    }

}